package com.example.demo.thread;

import java.util.Date;

/**
 * @Author: xiatian
 * @CreateTime: 2021/11/11 3:21 下午
 * @Description:
 */
public class MyRunnable implements Runnable {

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
            System.out.println("当前线程名称：" + Thread.currentThread().getName());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
